﻿using System.Collections.Generic;
using System.Windows.Controls;
using LSA.Framework;

namespace Visuals
{
    /// <summary>
    /// Interaction logic for GroupPreviewControl.xaml
    /// </summary>
    public partial class GroupPreviewControl : UserControl
    {
        public string GroupName { get; set; }
        public GroupPreviewControl(string group, IEnumerable<WordRelationPair> words, GetStringForWordId deleg)
        {
            InitializeComponent();
            GroupName = group;

            foreach (WordRelationPair pair in words)
            {
                wordsList.Items.Add(deleg(pair.Word.Id));
            }
        }
    }
}
